package parent;

public class Person {
    //  protected修饰符允许子类访问
    protected String id;
    protected String name;
    protected String gender;
    protected String college;

    // 父类构造方法
    public Person(String id, String name, String gender, String college) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.college = college;
    }

    // 父类业务方法（抽象方法，由子类实现）
    public void printWorkSchedule() {
        System.out.println(name + "（" + gender + "，" + college + "学院）的工作安排：");
    }

    // getter和setter方法
    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public String getCollege() {
        return college;
    }
}